<template>
  <div class="header">
    <div class="left">
      <slot name="left"></slot>
    </div>
    <div>{{title}}</div>
    <div class="right">
      <slot name="right"></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: ["title"]
};
</script>

<style lang="less" scoped>
.header {
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid #ccc;
  .left,
  .right {
    font-size: 24px;
  }
}
</style>